<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/4/24
  Time: 17:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<h1 align="center">登陆成功..........欢迎用户 ${user}</h1>
文件上传支持多文件
<form action="http://localhost:8080/springMvc_war_exploded/upload" method="post" enctype="multipart/form-data">
    <input type="file" name="file"><br/><br/>
    <input type="file" name="file"><br/><br/>
    <input type="submit" value="上传">
</form>


<form action="http://localhost:8080/springMvc_war_exploded/download" method="post">
    请输入文件名: <input type="text" id="fileName" name="fileName">
    <input type="submit" value="下载">
</form>


<h1>登陆日志如下</h1>
<table>
    <thead>
    <tr>
        <th>Name</th>
        <th>Time</th>
        <th>IP Address</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="item" items="${list}">
        <tr>
            <td>${item.name}</td>
            <td>${item.time}</td>
            <td>${item.ip}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>

<h1>可以下载的文件列表${result}</h1>
</body>
</html>
